Use FontAwesome glyphs for asc/desc arrows.

Akinori MUSHA 10 年 前
コミット
b543c38f25
共有1 個のファイルを変更した5 個の追加5 個の削除を含む
  1. 5 5
      app/assets/stylesheets/tables.css.scss

+ 5 - 5
app/assets/stylesheets/tables.css.scss

@@ -6,17 +6,17 @@
6 6
   &.asc:after, &.desc:after {
7 7
     text-decoration: none;
8 8
     position: absolute;
9
-    top: -5px;
10
-    right: -12px;
11
-    font-size: 1.2em;
9
+    top: 0;
10
+    right: -1em;
11
+    font-family: FontAwesome;
12 12
   }
13 13
 
14 14
   &.asc:after {
15
-    content: '\2193';
15
+    content: '\f0de'; //fa-sort-asc
16 16
   }
17 17
 
18 18
   &.desc:after {
19
-    content: '\2191';
19
+    content: '\f0dd'; //fa-sort-desc
20 20
   }
21 21
 }
22 22